package com.xiaohai.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiaohai.projo.Class;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaohai.projo.dto.ClassDto;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaohai
 * @since 2024-02-24
 */
@Mapper
public interface ClassMapper extends BaseMapper<Class> {

    IPage<ClassDto> list(Page<ClassDto> page, String name, String teacherName);

    ClassDto getById(String id);

    IPage<ClassDto> listByStu(Page<ClassDto> page, String name, String teacherName, String account);

    IPage<ClassDto> listByTea(Page<ClassDto> page, String name, String account);
}
